package com.chuangshixinchen.enterprise.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chuangshixinchen.enterprise.common.Result;
import com.chuangshixinchen.enterprise.entity.Tb_user;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chuangshixinchen.enterprise.vo.req.UserChangePwdVo;
import com.chuangshixinchen.enterprise.vo.req.UserLoginVo;
import com.chuangshixinchen.enterprise.vo.req.UserReqPageVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-13
 */
public interface ITb_userService extends IService<Tb_user> {
    /**
     * 分页查询
     *
     * @param vo 参数
     * @return
     */
    Result<Page<Tb_user>> listPage(UserReqPageVo vo);

    /**
     * 登录
     *
     * @param id
     * @return
     */
    Result<Tb_user> login(UserLoginVo vo);

    /**
     * 查询详情
     *
     * @param id
     * @return
     */
    Result<Tb_user> getInfo(Long id);

    /**
     * 新增
     *
     * @param vo 参数
     * @return
     */
    Result saveInfo(Tb_user vo);

    /**
     * 更新
     *
     * @param vo 参数
     * @return
     */
    Result updateInfo(Tb_user vo);

    Result changePwd(String token,UserChangePwdVo vo);
}
